<template>
  <h1>Hello world! {{ test }}</h1>
</template>

<script>

import request from '~/utils/request'

export default {
  name: 'Index',
  async asyncData({ params }) {
    request({
      url: `/album/byId?id=${params.id}`,
      method: 'get'
    }).then(r => {
      console.log(r)
    })
    return {
      test: 'test'
    }
  }
}
</script>

<style scoped>

</style>
